function run(req, res){
    console.log('in find');
    var userBean = require('../../been/user').userBean;
    var db = require('../../db').db;
    var userModel = db.model('users',userBean);

    //定义单独查找还是多项目查找
    var params = {};
    if(req.query.id){
        params['userId'] = req.query.id;
    }
    if(req.query.isDel){
        params['isDel'] = req.query.isDel;
    }
    if(req.query.type){
        params['type'] = req.query.type;
    }
    if(req.query.name){
        params['name'] = req.query.name;
    }
    if(req.query.male){
        params['male'] = req.query.male;
    }
    if(req.query.age){
        params['age'] = req.query.age;
    }
    if(req.query.create){
        params['create'] = req.query.create;
    }
    if(req.query.update){
        params['update'] = req.query.update;
    }
    userModel.find(params,function(err,results){
        if(err){
            res.send(err);
            console.error(err);
        }else if(results.length > 0){
            res.send(JSON.stringify(results));
        }else{
            res.send('MB，没找到');
        }
    });
}
exports.run = run;